import http from "../config/http";
const prefix = "/user"
export function requireToken() {
    return http.request({
        url: prefix + "/token",
        method: "get",
    })
}

/**
 * todo:获取用户信息
 */
export function userInfo(data:{token:string}) {
    return http.request({
        url: prefix + "/userInfo",
        method: "get",
        params:data
    })
}

export function asyncUserData(data: any) {
    return http.request({
        url: prefix + "/asyncUserData",
        method: "post",
        data
    })
}

